package com.fit.model.combo.member;

import org.hibernate.Session;

import com.fit.entities.member.Member;



public class MemberEncoder {
	private Session session;

	public MemberEncoder(Session session) {
		this.session = session;
	}

	public String toClient(Object arg0) {
		return ((Member)arg0).getName().toString();
	}

	public Object toValue(String arg0) {
		return session.load(Member.class, new Long(arg0));
	}
}
